package com.example.onlineboxone;

import android.annotation.SuppressLint;
import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebView;
import android.webkit.WebViewClient;

@SuppressLint("SetJavaScriptEnabled")
public class WebViewFullActivity extends Activity {
	private WebView webviewFull;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.full_webview);
		webviewFull = (WebView) findViewById(R.id.webviewFull);
		webviewFull.getSettings().setJavaScriptEnabled(true);
		webviewFull.setWebViewClient(new WebViewClient() {
			public boolean shouldOverrideUrlLoading(WebView view, String url) {
				view.loadUrl(url);
				return true;
			}
		});
		webviewFull.loadUrl(getIntent().getStringExtra("url"));
	}

}
